package com.netease.update;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;

public class CheckVersionService extends Service
{
  private static final String a = "whether_should_show";
  private Thread b;

  public static void a(Context paramContext, boolean paramBoolean)
  {
    Intent localIntent = new Intent();
    localIntent.setClass(paramContext, CheckVersionService.class);
    localIntent.putExtra("whether_should_show", paramBoolean);
    paramContext.startService(localIntent);
  }

  private void a(Intent paramIntent)
  {
    if (paramIntent != null)
    {
      boolean bool = paramIntent.getBooleanExtra("whether_should_show", false);
      if (this.b != null)
      {
        this.b.interrupt();
        this.b = null;
      }
      this.b = new Thread(new a(this, bool));
      this.b.start();
    }
  }

  public IBinder onBind(Intent paramIntent)
  {
    return null;
  }

  public void onCreate()
  {
    super.onCreate();
  }

  public void onDestroy()
  {
    super.onDestroy();
    if (this.b != null)
    {
      this.b.interrupt();
      this.b = null;
    }
  }

  public void onStart(Intent paramIntent, int paramInt)
  {
    a(paramIntent);
  }

  public int onStartCommand(Intent paramIntent, int paramInt1, int paramInt2)
  {
    a(paramIntent);
    return 1;
  }

  public boolean onUnbind(Intent paramIntent)
  {
    return super.onUnbind(paramIntent);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.update.CheckVersionService
 * JD-Core Version:    0.6.0
 */